Cascading two scripted API requests togethor